#ifndef FUNCTIONS_INCLUDED
#define FUNCTIONS_INCLUDED
/**declaration de la structure du personnagepp*/typedef struct perso
{

    SDL_Rect set;
    SDL_Surface *pic[5];
    SDL_Surface *curent;
     SDL_Surface *att;


} perso;
/**declaration de la structure  de la barre de vie*/typedef struct s_bdv
{
    SDL_Surface *bdv[6];
    SDL_Surface *curent;
    SDL_Rect pos_bdv;
} s_bdv;


/**fonction d'obtention de pixel pour la collision*/Uint32 obtenirPixel(SDL_Surface *surface, int x, int y);
/**fonction du menu*/void blitmenu(SDL_Surface * ico[11],SDL_Surface *fond[2],SDL_Surface *menu_screen,int a,int b,int c,int d,int e,int f);
void load_menu(SDL_Surface * ico[11],SDL_Surface *fond[2]);
/**fonction de la partie arduino*/int arduino (FILE *f);
/**fonctin d'initialisation des positions*/void SetPosition(SDL_Rect *Thing,int x,int y,int w,int h);
/**charger l'image du personnage*/void LoadPerso(perso *MyPerso,int stage);
/**charger l'image de la barre de vie*/void chargebdv(s_bdv *bdv);
/**jouer au premier stage*/int play_Stage_one(SDL_Surface *screen,perso kheop);
//void en_move(En perso,SDL_Surface *screen,int x);
/**fonction de collision avec obstacle*/void aafsa(SDL_Surface *fond,SDL_Surface *screen,SDL_Surface *PersoPic,SDL_Surface *surbdv,SDL_Surface *obspic,SDL_Rect cam,SDL_Rect PersoPos,SDL_Rect obs,SDL_Rect bdv);
#endif // FUNCTIONS_INCLUDED
